﻿namespace CSharpPro._1021;

public class Demo
{
    public Demo()
    {
        
        Father father = new Father();
        father.Print();
        Child child = new Child();
        child.Print();
        Son son = new Son();
        son.Print();
        
        UserTest test = new UserTestSon();
        test.M1();
        test.M2();
        test.M3();
        
        UserService service = new UserServiceImpl();
        service.AddUser("ZhangSan");
        Console.WriteLine(service.DeleteUser(1001));
        service.UpdateUser(1001, "LiSi");
        Console.WriteLine(service.GetUser(1001));
       
    }
}
